package com.wanmait.meteor;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;


@SpringBootApplication//(exclude = DataSourceAutoConfiguration.class)
//如果不配置包的扫描，默认会扫描启动类所在的包及其子包下面的类
//如果配置了包的扫描，则默认扫描的配置失效
//@ComponentScan({"com.wanmait.controller","com.wanmait.bootdemo"})
@MapperScan("com.wanmait.meteor.mapper")//mapper接口的自动扫描
@ServletComponentScan//过滤器 监听器 servlet都起作用
//@ImportResource("classpath:spring.xml")

public class MeteorApplication {

    public static void main(String[] args) {
        SpringApplication.run(MeteorApplication.class, args);
    }

}
